/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import request from '@/utils/request';

export async function essayEdit(params: any) {
  return request('/ProductHelpCollection/edit', {
    method: 'POST',
    data: params,
  });
}

export async function getProductList(params: any) {
  return request('/ProductHelpCollection/list', {
    method: 'POST',
    data: params,
  });
}

export async function getProductDetail(params: any) {
  return request('/ProductHelpCollection/detail', {
    method: 'POST',
    data: params,
  });
}

export async function essayTop(params: any) {
  return request('/ProductHelpCollection/onTop', {
    method: 'POST',
    data: params,
  });
}

export async function essayOnline(params: any) {
  return request('/ProductHelpCollection/publish', {
    method: 'POST',
    data: params,
  });
}

export async function essayDelete(params: any) {
  return request('/ProductHelpCollection/delete', {
    method: 'POST',
    data: params,
  });
}

export async function addTag(params: any) {
  return request('/ProductHelpCollection/addTag', {
    method: 'POST',
    data: params,
  });
}

export async function delTag(params: any) {
  return request('/ProductHelpCollection/delTag', {
    method: 'POST',
    data: params,
  });
}

export async function getTagList() {
  return request('/ProductHelpCollection/tagList', {
    method: 'POST',
  });
}
